+Fri Jul 27 11:31:15 2001 Jonathan Blandford <jrb@redhat.com>
+
+ * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_get_property):
+ add an "attributes" property to the text renderer for ATK.
+
2001-07-26 Alex Larsson <alexl@redhat.com>
* gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image):
+Fri Jul 27 11:31:15 2001 Jonathan Blandford <jrb@redhat.com>
+
+ * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_get_property):
+ add an "attributes" property to the text renderer for ATK.
+
2001-07-26 Alex Larsson <alexl@redhat.com>
* gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image):
+Fri Jul 27 11:31:15 2001 Jonathan Blandford <jrb@redhat.com>
+
+ * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_get_property):
+ add an "attributes" property to the text renderer for ATK.
+
2001-07-26 Alex Larsson <alexl@redhat.com>
* gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image):
+Fri Jul 27 11:31:15 2001 Jonathan Blandford <jrb@redhat.com>
+
+ * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_get_property):
+ add an "attributes" property to the text renderer for ATK.
+
2001-07-26 Alex Larsson <alexl@redhat.com>
* gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image):
+Fri Jul 27 11:31:15 2001 Jonathan Blandford <jrb@redhat.com>
+
+ * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_get_property):
+ add an "attributes" property to the text renderer for ATK.
+
2001-07-26 Alex Larsson <alexl@redhat.com>
* gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image):
+Fri Jul 27 11:31:15 2001 Jonathan Blandford <jrb@redhat.com>
+
+ * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_get_property):
+ add an "attributes" property to the text renderer for ATK.
+
2001-07-26 Alex Larsson <alexl@redhat.com>
* gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image):
+Fri Jul 27 11:31:15 2001 Jonathan Blandford <jrb@redhat.com>
+
+ * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_get_property):
+ add an "attributes" property to the text renderer for ATK.
+
2001-07-26 Alex Larsson <alexl@redhat.com>
* gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image):
PROP_TEXT,
PROP_MARKUP,
+ PROP_ATTRIBUTES,
/* Style args */
PROP_BACKGROUND,
_("Marked up text to render"),
NULL,
G_PARAM_WRITABLE));
+
+ g_object_class_install_property (gobject_class,
+ PROP_ATTRIBUTES,
+ g_param_spec_boxed ("attributes",
+ _("Attributes"),
+ _("A list of style attributes to apply to the text of the renderer."),
+ PANGO_TYPE_ATTR_LIST,
+ G_PARAM_READWRITE));
g_object_class_install_property (object_class,
PROP_BACKGROUND,
case PROP_TEXT:
g_value_set_string (value, celltext->text);
break;
-
+
+ case PROP_ATTRIBUTES:
+ g_value_set_boxed (value, celltext->extra_attrs);
+ break;
+
case PROP_BACKGROUND_GDK:
{
GdkColor color;
celltext->text = g_strdup (g_value_get_string (value));
g_object_notify(G_OBJECT(object), "text");
break;
-
+
+ case PROP_ATTRIBUTES:
+ if (celltext->extra_attrs)
+ pango_attr_list_unref (celltext->extra_attrs);
+
+ celltext->extra_attrs = g_value_get_boxed (value);
+ pango_attr_list_ref (celltext->extra_attrs);
+ break;
case PROP_MARKUP:
{
const gchar *str;